package com.web.mall.service;

import com.web.mall.pojo.Specification;
import com.web.mall.pojo.TbBrand;
import com.web.mall.pojogroup.TbSpecification;

import java.util.List;

public interface SpecificationManagerService {
    /**
     * 查询所有规格列表
     * @return
     */
    public List<Specification> querySpecification();

    /**
     * 根据id查询单条规格
     * @param id
     * @return
     */
    public TbSpecification findTbSpecificationById(Long id);

    /**
     * 添加规格
     * @param specification
     * @return
     */
    public void add(TbSpecification specification);

    /**
     * 修改规格
     * @param specification
     * @return
     */
    public void update(TbSpecification specification);

    /**
     * 删除规格
     * @param id
     * @return
     */
    public boolean deleteSpecification(Long id);

    /**
     * 添加或编辑
     * @param specification
     * @return
     */
    boolean saveSpecification(TbSpecification specification);


    List<Specification> findSpecificationList();
}
